import { Component,OnInit } from'@angular/core';


@Component({
  selector:'app-question',
  templateUrl:'./question.page.html',
  styles:[`
  h5 {
    font-size: 1.64rem;
    line-height: 110%;
    margin: .82rem 0 .656rem 0;
  }
  p{
    line-height:22px;
  }
  .q{
    color: #2d78f4;
    margin-top: 30px;
  }
  `]
})

export class QuestionPage{

  contact:string;

  constructor() { }


  ngOnInit() {
    // user
    let host:string = window.location.hostname;

    switch (host) {
      // 电商先生
      case 'shop.630game.com':

      this.contact = "assets/img/contact.jpg";
      break;

      // 品谱大数据
      case 'www.hzbigdate.com':

      this.contact = "assets/img/contact.jpg";
      break;

      // 中防小控
      case 'qzt.sinoac.org':

      break;

      // 淘控
      case 'shuju.315taokong.com':
      this.contact = "assets/img/contact.jpg";
      break;

      // 数据空间
      case 'info.veiwa.cn':
      this.contact = "assets/img/contact.jpg";
      break;

      // qbmf
      case 'qbmf.trenddata.cn':
      this.contact = "assets/img/contact.jpg";
      break;

      // 电商舆情
      case 'dianshangyuqing.com':
      this.contact = "assets/img/contact.jpg";
      break;

      default:
      this.contact = "assets/img/contact.jpg";
      break;
    }
  }
}
